﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterpages/default.master" AutoEventWireup="true" CodeFile="mail.aspx.cs" Inherits="VISS.Web.BackEnd.Modules.User.MailPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CssHolder" runat="Server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" runat="Server">
    <div id="mail-page">
        <div class="header">Gửi Mail Cho Thành Viên</div>
        <div class="composer">
            <div class="subject">
                <label class="title">Tiêu đề: </label><input type="text" id="txtTitle" name="txtTitle" class="input" />
            </div>
            <div class="content">
                <div class="title">Nội dung:</div>
                <textarea id="MailEditor" rows="20" cols="80" style="width: 640px"></textarea>
                <input type="text" id="txtContent" name="txtContent" style="display: none;" />
            </div>
        </div>
        <div class="receivers">
            <div class="title">Danh sách thành viên nhận mail:</div>
            <div class="list">
                <div class="left">
                    <input type="radio" name="rdInputType" id="rdList" onclick="ChangeEmailListType();" checked="checked" /> <label for="rdList">Nhập danh sách</label>
                </div>
                <div class="right">
                    <textarea id="ListEmail"></textarea>
                    <div style="margin-top: 5px;">Thông tin thành viên gồm: <strong>[Họ tên,Email]</strong>. Mỗi thành viên cách nhau 1 dấu <strong>";"</strong></div>
                </div>
            </div>
            <div class="file">
                <div class="left">
                    <input type="radio" name="rdInputType" id="rdFile" onclick="ChangeEmailListType();" /> <label for="rdFile">Tải lên từ file</label>
                </div>
                <div class="right">
                    <input type="file" name="FileEmail" id="FileEmail" disabled="disabled" /> <span>(*.txt)</span>
                </div>
            </div>
        </div>
        <div class="submit">
            <input type="button" id="btnPreview" value="Xem trước" /> 
            <input type="button" id="btnSubmitMail" value="Gửi" />
        </div>
    </div>
    <iframe width="0" height="0" src="javascript:void(0)" style="display: none;" name="UploadWindow" id="UploadWindow"></iframe>
    <input type="hidden" value="sendMailUpload" name="temp" id="action-request" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptHolder" runat="Server">
    <!-- TinyMCE -->
    <script src="<%=AppSettings.RootURL %>res/scripts/jquery/tiny_mce/tiny_mce.js" type="text/javascript"></script>
    <script type="text/javascript">
        // O2k7 skin
        tinyMCE.init({
            // General options
            mode: "exact",
            elements: "MailEditor",
            theme: "advanced",
            skin: "o2k7",
            plugins: "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave",

            // Theme options
            theme_advanced_buttons1: "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
            theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
            theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl,|,fullscreen",
            theme_advanced_buttons4: "styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
            theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left",
            theme_advanced_statusbar_location: "bottom",
            theme_advanced_resizing: false,

            content_css: "<%=AppSettings.RootURL %>res/css/tiny_mce/custom_content.css",
            theme_advanced_font_sizes: "10px,12px,13px,14px,16px,18px,20px",
            font_size_style_values : "10px,12px,13px,14px,16px,18px,20px"

        });
    </script>
    <!-- /TinyMCE -->
</asp:Content>
